/**
 * 
 */
package com.org.cbs.service;

import java.util.List;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Service;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.org.cbs.dao.UserDemoDao;
import com.org.cbs.model.UserDemo;

/**
 * @className MongodbService
 * @author zhengguohui
 * @description
 * @date 2018年7月6日
 */

@Service
public class MongodbServiceImpl implements MongodbService {

	@Autowired
	private UserDemoDao userDao;

	@Test
	public void add() {
		// Query query = new Query();
		// query.addCriteria(Criteria.where("username").is("machao"));
		// List<UserDemo> users = mongoTemplate.find(query, UserDemo.class);
		// System.out.println(users);
		System.out.println(12);
	}

}
